package com.drojian;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class MainActivity extends AppCompatActivity {
    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_main);
         button = findViewById(R.id.btn1);
        Log.d("xxx", "getHeight" +button.getHeight());
        Log.d("xxx", "getWidth" +button.getWidth());
        Log.d("xxx", "getTop" +button.getTop());
        Log.d("xxx", "getLeft" +button.getLeft());
        Log.d("xxx", "getRight" +button.getRight());
        Log.d("xxx", "getBottom" +button.getBottom());
    }

    @Override
    protected void onPause() {
        super.onPause();

    }
}